package com.niguang.work.labour.api.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.niguang.work.labour.api.entity.TeamUser;
import com.niguang.work.labour.api.vo.TeamListVo;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

/**
 * <p>
 * 'work.v_personSite' is not BASE TABLE Mapper 接口
 * </p>
 *
 * @author 83673
 * @since 2018-11-17
 */
public interface TeamUserMapper extends BaseMapper<TeamUser> {

    List<Map<String, Object>> getTeamListUser(Page<Map<String, Object>> page, @Param("teamId") String teamId);

    List<TeamListVo> getTeamList(Page<TeamListVo> page, @Param("siteId") Long siteId, @Param("userId")  Long userId);
}
